package com.example.ssss.state;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class DrivingDetectionStateViewModel extends ViewModel {
    public MutableLiveData<String> heartBeatText = new MutableLiveData<>();
    public MutableLiveData<String> bloodOxygenText = new MutableLiveData<>();
    public MutableLiveData<String> highPressureText = new MutableLiveData<>();
    public MutableLiveData<String> lowPressureText = new MutableLiveData<>();
    public MutableLiveData<String> behaveText = new MutableLiveData<>();
    public MutableLiveData<String> envTemperatureText = new MutableLiveData<>();
    public MutableLiveData<String> envHumidityText = new MutableLiveData<>();
    public MutableLiveData<String> envCO2Text = new MutableLiveData<>();
    public MutableLiveData<String> envTVOCText = new MutableLiveData<>();
    public MutableLiveData<Boolean> heartBeatState = new MutableLiveData<>();
    public MutableLiveData<Boolean> bloodOxygenState = new MutableLiveData<>();
    public MutableLiveData<Boolean> highPressureState = new MutableLiveData<>();
    public MutableLiveData<Boolean> lowPressureState = new MutableLiveData<>();
    public MutableLiveData<Boolean> behaveState = new MutableLiveData<>();
    public MutableLiveData<Boolean> envTemperatureState = new MutableLiveData<>();
    public MutableLiveData<Boolean> envHumidityState = new MutableLiveData<>();
    public MutableLiveData<Boolean> envCO2State = new MutableLiveData<>();
    public MutableLiveData<Boolean> envTVOCState = new MutableLiveData<>();


    public void setHeartBeatState(Boolean State) {
        heartBeatState.setValue(State);
    }

    public void setBloodOxygenState(Boolean State) {
        bloodOxygenState.setValue(State);
    }

    public void setHighPressureState(Boolean State) {
        highPressureState.setValue(State);
    }

    public void setLowPressureState(Boolean State) { lowPressureState.setValue(State); }

    public void setBehaveState(Boolean State) {
        behaveState.setValue(State);
    }

    public void setEnvTemperatureState(Boolean State) {
        envTemperatureState.setValue(State);
    }

    public void setEnvHumidityState(Boolean State) {
        envHumidityState.setValue(State);
    }

    public void setEnvCO2State(Boolean State) {
        envCO2State.setValue(State);
    }

    public void setEnvTVOCState(Boolean State) {
        envTVOCState.setValue(State);
    }

    public void setHeartBeatText(String Text) {
        heartBeatText.setValue(Text);
    }

    public void setBloodOxygenText(String Text) {
        bloodOxygenText.setValue(Text);
    }

    public void setHighPressureText(String Text) {
        highPressureText.setValue(Text);
    }

    public void setLowPressureText(String Text) {
        lowPressureText.setValue(Text);
    }

    public void setBehaveText(String Text){behaveText.setValue(Text);}

    public void setEnvTemperatureText(String Text) {
        envTemperatureText.setValue(Text);
    }

    public void setEnvHumidityText(String Text) {
        envHumidityText.setValue(Text);
    }

    public void setEnvCO2Text(String Text) {
        envCO2Text.setValue(Text);
    }

    public void setEnvTVOCText(String Text) {
        envTVOCText.setValue(Text);
    }


}
